/**
 *
 */
package org.suren.littlebird.po;

/**
 * @author suren
 *
 */
public class BundleStatistic
{
	private int totalNum = 0;
	private int activeNum = 0;
	private int installedNum = 0;
	private int resolvedNum = 0;

	public int increaseActive()
	{
		return activeNum++;
	}

	public int getActiveNum()
	{
		return activeNum;
	}

	public int increaseInstalled()
	{
		return installedNum++;
	}

	public int getInstalledNum()
	{
		return installedNum;
	}

	public int increaseResolved()
	{
		return resolvedNum++;
	}

	public int getResolvedNum()
	{
		return resolvedNum;
	}

	/**
	 * @return the totalNum
	 */
	public int getTotalNum()
	{
		return totalNum;
	}

	/**
	 * @param totalNum the totalNum to set
	 */
	public void setTotalNum(int totalNum)
	{
		this.totalNum = totalNum;
	}

	@Override
	public String toString()
	{
		return "BundleStatistic [" + activeNum + " actived, " +  installedNum + " installed, " + resolvedNum + " resolved, total : " + totalNum + "]";
	}
}
